﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace T_settlement.Infrastructure.Migrations
{
    public partial class 结算1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "AuditState",
                table: "Settlement",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CreateBy",
                table: "Settlement",
                type: "nvarchar(20)",
                maxLength: 20,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreateDate",
                table: "Settlement",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsDel",
                table: "Settlement",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "UpdateBy",
                table: "Settlement",
                type: "nvarchar(20)",
                maxLength: 20,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateDate",
                table: "Settlement",
                type: "datetime2",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AuditState",
                table: "Settlement");

            migrationBuilder.DropColumn(
                name: "CreateBy",
                table: "Settlement");

            migrationBuilder.DropColumn(
                name: "CreateDate",
                table: "Settlement");

            migrationBuilder.DropColumn(
                name: "IsDel",
                table: "Settlement");

            migrationBuilder.DropColumn(
                name: "UpdateBy",
                table: "Settlement");

            migrationBuilder.DropColumn(
                name: "UpdateDate",
                table: "Settlement");
        }
    }
}
